
<meta charset="UTF-8">

<script type="text/javascript">

	$(function(){
		$('#laoshiTable').datagrid($.extend({},$.crudgrid.defaults,{
			title:'教师管理',
			url:'teacher/page',
			dialog:{
				add:{
					title:'新增',
					href:'teacher/edit',
					action:'teacher/save',
					height:230
				},
				edit:{
					title:'修改',
					href:'teacher/edit',
					action:'teacher/save',
					height:230
				},
				search:{
					title:'查询',
					href:'teacher/search',
				},
				remove:{
					url:'teacher/delete',
					msg:'是否删除这条数据'
				},
				resetpwd:{
					url:'teacher/reset',
					msg:'是否重置密码'
				}
			},
			columns:[
				[
					{title:'cb',field:'cb',checkbox:true},
					{title:'序号',field:'id',width:200,hidden:true},
					{title:'账号',field:'username',width:300},
					{title:'姓名',field:'name',width:200},
				]		
			],
			toolbar:[$.crudgrid.buttons.add,'-',$.crudgrid.buttons.edit,'-',$.crudgrid.buttons.remove,'-',$.crudgrid.buttons.search,'-',$.crudgrid.buttons.resetpwd,'-',$.crudgrid.buttons.refrsh,'-']
			})
		)
	})
</script>
<table id="laoshiTable"></table>



